package gui;

import gui.MyInput.InputArea;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.*;

import components.IOBuffer.OutputBuffer;


public class MyOutput extends JScrollPane {

	public static OutputBuffer ConsoleOutputBuffer;
	public static OutputArea ia = new OutputArea();

	static class OutputArea extends JTextArea {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;

		OutputArea() {

			this.setBorder(null);
			this.setVisible(true);
			this.setCaretColor(Color.green);
			this.setFont(new Font("Serif", Font.LAYOUT_LEFT_TO_RIGHT, 14));
			//this.setForeground(new Color(86,173,164, 50));
			this.setForeground(Color.green);
			this.setBackground(Color.black);
			this.setOpaque(true);
			this.setEditable(false);

		}
	}

	public MyOutput() {
		super(ia);
		ConsoleOutputBuffer = new OutputBuffer(ia);

		this.setBorder(null);
		this.setVisible(true);
		this.setOpaque(false);
		this.setForeground(Color.blue);

	}

}